package com.qdlc.p2p.biz.service;

import com.qdlc.p2p.dal.dto.Operator;
import com.qdlc.p2p.dal.dto.UserCredit;
import com.qdlc.p2p.dal.dto.UserCreditApply;
import com.qdlc.p2p.dal.dto.UserCreditLog;

/**
 * 信用额度Service
 *
 * @author xx
 * @version 2.0
 * @since 2014年3月25日
 */
public interface UserCreditService {

    public UserCredit findByUserId(long userId);

    public void update(double totalVar, double useVar, double nouseVar, long userId);

    /**
     * 申请信用额度
     *
     * @param userCreditApply
     */
    public void applyUserCredit(UserCreditApply userCreditApply);

    /**
     * 审核信用额度
     *
     * @param userCreditApply
     * @param userCreditLog
     */
    public void verifyApplyUserCredit(UserCreditApply userCreditApply, UserCreditLog userCreditLog, Operator operator);

}
